// RaceEditor.xaml.cs
//
// Copyright (c) 2007 Mike Strobel
//
// This source code is subject to the terms of the Microsoft Reciprocal License (Ms-RL).
// For details, see <http://www.opensource.org/licenses/ms-rl.html>.
//
// All other rights reserved.

using System;
using System.Windows.Controls;

using Supremacy.Universe;

namespace Supremacy.Editor
{
    /// <summary>
    /// Interaction logic for RaceEditor.xaml
    /// </summary>

    public partial class RaceEditor : EditorBase
    {
        public RaceEditor()
        {
            InitializeComponent();

            foreach (PlanetType planetType in Enum.GetValues(typeof(PlanetType)))
            {
                switch (planetType)
                {
                    case PlanetType.Asteroids:
                    case PlanetType.Crystalline:
                    case PlanetType.GasGiant:
                        continue;
                    default:
                        HomePlanetTypeList.Items.Add(planetType);
                        break;
                }
            }
        }
    }
}